import React, { Component } from 'react'

class App extends Component {
  render() {
    return (
      <div>
        <h1>App组件</h1>
      </div>
    )
  }
}

function withBackGroundColor(WrappedComponent){
  return class extends Component{
    render(){
      return <div style={{backgroundColor:'red'}}>
        <WrappedComponent></WrappedComponent>
      </div>
    }
  }
}

export default withBackGroundColor(App)
